package com.ysd.lis.controller.sta;


import com.ysd.common.Result;
import com.ysd.lis.controller.pub.BaseController;
import com.ysd.lis.entity.sta.StaStainingOptions;
import com.ysd.lis.request.Params;
import com.ysd.lis.service.sta.StaStainingOptionsService;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author wanghuaixing
 * @since 2024-04-08
 */
@RestController
@RequestMapping("/sta/staining/options")
public class StaStainingOptionsController extends BaseController {

    @Autowired
    StaStainingOptionsService optionsService;

    @ApiOperation("查询")
    @GetMapping("/findStainingOptionsList")
    public Result findStainingOptionsList(Params params) {
        return optionsService.findStainingOptionsList(params);
    }

    @ApiOperation("批量修改")
    @PostMapping("/batchSaveStainingOptions")
    public Result batchSaveStainingOptions(@RequestBody List<StaStainingOptions> optionsList) {
        return optionsService.batchSaveStainingOptions(optionsList);
    }

    @ApiOperation("批量删除")
    @PostMapping("/batchDeleteStainingOptions")
    public Result batchDeleteStainingOptions(@RequestBody List<StaStainingOptions> optionsList) {
        return optionsService.batchDeleteStainingOptions(optionsList);
    }

}
